<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<%@ page import="com.ochnas.examples.jsf.service.RentABike" %>
<%@ page import="com.ochnas.examples.jsf.domain.Bike" %>
<%@ page import="com.ochnas.examples.jsf.service.ArrayListRentABike" %>

<% RentABike store = new ArrayListRentABike("Bruce's Bikes"); %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><%= store.getStoreName() %></title>
</head>
<body>
	<h1><%= store.getStoreName() %></h1>
	<table><table border="1" cellspacing="2" cellpadding="2">
         <tr style="font-weight:bold">
            <td>Manufacturer</td><td>Model</td><td>Status</td>
         </tr>
         <% for(int i=0;i<store.getBikes(  ).size(  );i++) { %>
            <% Bike bike = (Bike)store.getBikes(  ).get(i); %>
            <tr>
               <td><%= bike.getManufacturer(  ) %></td>
               <td><%= bike.getModel(  ) %></td>
               <td><%= bike.getStatus(  ) %></td>
            </tr>
         <% } %>
      </table>

</body>
</html>